home *** CD-ROM | disk | FTP | other *** search
/ User's Choice Windows CD / User's Choice Windows CD (CMS Software)(1993).iso / utility1 / gs261src.zip / GP_MSWIN.H < prev    next >
C/C++ Source or Header  |  1993-05-13  |  2KB  |  65 lines

  1. /* Copyright (C) 1992, 1993 Aladdin Enterprises.  All rights reserved.
  2.  
  3. This file is part of Ghostscript.
  4.  
  5. Ghostscript is distributed in the hope that it will be useful, but
  6. WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. to anyone for the consequences of using it or for whether it serves any
  8. particular purpose or works at all, unless he says so in writing.  Refer
  9. to the Ghostscript General Public License for full details.
  10.  
  11. Everyone is granted permission to copy, modify and redistribute
  12. Ghostscript, but only under the conditions described in the Ghostscript
  13. General Public License.  A copy of this license is supposed to have been
  14. given to you along with Ghostscript so you can know your rights and
  15. responsibilities.  It should be in a file named COPYING.  Among other
  16. things, the copyright notice and this notice must be preserved on all
  17. copies.  */
  18.  
  19. /* gp_mswin.h */
  20. /* Definitions common to Ghostscript MS Windows implementation */
  21. /* (used by both C code and Ghostscript 'resource') */
  22.   
  23. #define SPOOL_PORT    100
  24. #define CANCEL_PCDONE    101
  25.  
  26. #ifndef RC_INVOKED        /* NOTA BENE */
  27.  
  28. /* system menu constants for image window */
  29. #define M_COPY_CLIP 1
  30.  
  31. /* externals from gp_mswin.c */
  32. extern HWND hwndtext;
  33. extern HINSTANCE phInstance;
  34. extern const LPSTR szAppName;
  35. extern const LPSTR szImgName;
  36. extern BOOL is_win31;
  37. extern BOOL CALLBACK _export AbortProc(HDC, int);
  38. /* imitation pipes */
  39. extern HGLOBAL pipe_hglobal;
  40. extern LPBYTE pipe_lpbyte;
  41. extern UINT pipe_count;
  42.  
  43. /* for gsview.exe */
  44. extern BOOL gsview;
  45. extern HWND gsview_hwnd;
  46. extern BOOL gsview_next;
  47. extern LPSTR gsview_option;
  48. /* messages used between gsview and gswin */
  49. #define WM_GSVIEW WM_USER+0
  50. /* from gswin to gsview */
  51. #define HWND_TEXT    0
  52. #define HWND_IMGCHILD    1
  53. #define GSWIN_CLOSE    2
  54. #define SYNC_OUTPUT    3
  55. #define OUTPUT_PAGE    4
  56. #define SCROLL_POSITION 5
  57. #define PIPE_REQUEST    6
  58. /* from gsview to gswin image window */
  59. #define NEXT_PAGE    10
  60. #define COPY_CLIPBOARD    11
  61. /* from gsview to gswin text window */
  62. #define PIPE_DATA    12
  63.  
  64. #endif                /* !defined(RC_INVOKED) */
  65.